package com.controller.front;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.service.front.IMusicServiceFront;

@RequestMapping("/music")
@Controller
public class MusicControllerFront {
	@Autowired
	private IMusicServiceFront musicServiceFront;
	
	@RequestMapping("/list")
	public String list(Model model){
		List<Map<String, Object>> musicList=musicServiceFront.list();
		model.addAttribute("musicList",musicList);
		return "index";
		
	}

}
